import com.sun.xml.internal.ws.addressing.WsaActionUtil;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:龙宝
 * Date:2023-12-01
 * Time:11:04
 */
public class Thread7 {

    public static void main(String[] args) {
        ExecutorService es = Executors.newCachedThreadPool();
        ExecutorService ee = Executors.newSingleThreadExecutor();
        ExecutorService ss = Executors.newFixedThreadPool(1);
        es.submit(()-> {
            System.out.println("哈哈哈");
        });
        ee.submit(()-> {
            System.out.println("1111");
        });
        ss.submit(()-> {
            System.out.println("2222");
        });

    }
}
